package aom.example.security.service;

import aom.example.security.domain.SysRoleEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/6/11 14:46
 * @since JDK 1.8
 */
public interface SysRoleService extends IService<SysRoleEntity> {

    SysRoleEntity getSysRoleEntityByUserName(String userName);

    List<Map<String, Object>> selectRoleUserByUserId(String userid);

    boolean insertSysUserRole(String userid,String roleid);

    List<Map<String, Object>> selectUserNotRole(String uid);

    boolean deleteSysUserRoleById(String id);
}
